﻿@model Blog.Models.LogOnModel

@{
    ViewBag.Title = "Se connecter";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="container">
    @Html.ValidationSummary(true, "Échec de la connexion. Corrigez les erreurs et réessayez.")

    @using (Html.BeginForm("LogOn", "Account")) 
    {
        <div>
            <fieldset>
                <div class="editor-label">
                    @Html.LabelFor(m => m.UserName)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(m => m.Password)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.Password)
                    @Html.ValidationMessageFor(m => m.Password)
                </div>

                    @Html.HiddenFor(m => m.RememberMe)

                <p>
                    <button type="submit" class="btn btn-primary btn-medium"><i class="icon-user icon-white"></i> Se connecter</button>
                </p>
            </fieldset>
        </div>
    }
</div>

<script src="@Url.Content("~/Scripts/bootstrap-validation.js")" type="text/javascript"></script>